//Name: Race Quest
//Author:Max Charnock
//Last Updated: 15/05/2014
//Purpose: quest subclass which acts as the race quest. Player must race to a spesfic location
//in the given time.

#pragma once
#include "AbstractQuest.h"

class RaceQuest: public AbstractQuest
{
private:

	//point the player must reach
	XMFLOAT3 FinishLine;

	//radius used for circle collison detection for finsh line
	float Radius;

public:

	RaceQuest();
	~RaceQuest();

	//sets the point the playe rmust race too and resets the time limit
	void Intialise();

	//checks whether the player has reached the point and causes the timer to count down
	void Update(float delta,XMFLOAT3 playerpos);

	//sets the finshline and time limit for quest
	void SetValues(XMFLOAT3 finish,float time,float radius);
};